﻿using Coater.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Coater
{
    public class RecipeInfo
    {
        [XmlElement]
        public string Description { get; set; }
        [XmlElement]
        public string WaferSize { get; set; }
        [XmlElement]
        public string WaferType { get; set; }
        [XmlElement]
        public string ReadyCheck { get; set; }
        [XmlElement]
        public int Delay { get; set; }
        [XmlElement]
        public bool WaferWash { get; set; }
        [XmlElement]
        public bool DisableChuck { get; set; }
        [XmlElement]
        public bool CloseIO { get; set; }

        [XmlArray]
        public List<StepInfo> Steps { get; set; } = new List<StepInfo>();

    }

    public class StepInfo
    {
        [XmlElement]
        public int Step { get; set; }
        [XmlElement]
        public bool Enable { get; set; }
        [XmlElement]
        public int SpinRPM { get; set; }
        [XmlElement]
        public int SpinAccel { get; set; }
        [XmlElement]
        public NozzleEnum Nozzle { get; set; }
        [XmlElement]
        public NozzleEnum SecondNozzle { get; set; }
        [XmlElement]
        public decimal From { get; set; }
        [XmlElement]
        public decimal To { get; set; }
        [XmlElement]
        public int Time { get; set; }
    }

}
